<template>
	<view class="Box">
		<view class="img">
			<u-icon name="server-man" labelPos='center' size='130'></u-icon>
		</view>
		<view class="consultation">
			<p>客服咨询</p>
			<p>微信号/手机号：18503930292 <span @click='copy' :id=pop>复制</span></p>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				pop: 18503930292,
			}
		},
		methods: {
			copy: function(e) {
				let item = e.target.id
				console.log("复制", e.target.id);
				uni.setClipboardData({
					data: item,
					success: function(res) {
						
					}
				});
			}
		}
	}
</script>

<style lang="less" scoped>
	.Box {
		height: 500rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-wrap: wrap;

		.img {
			width: 750rpx;
		}

		.consultation {
			width: 750rpx;
			height: 100rpx;
			text-align: center;

			:first-child {
				color: #999;
			}

			p {
				font-size: 30rpx;
				display: flex;
				align-items: center;
				justify-content: center;

				span {
					display: block;
					width: 100rpx;
					border: 1rpx solid #e4e4e4;
					font-size: 30rpx;
					margin-left: 20rpx;
					color: #666666;
				}
			}
		}
	}
</style>
